#define _CRT_SECURE_NO_WARNINGS
/* fwrite example : write buffer */
#include <stdio.h>

int main()
{
	FILE* pFile;
	char buffer[] = { 'x' , 'y' , 'z' };
	pFile = fopen("myfile.bin", "wb");
	fwrite(buffer, sizeof(char), sizeof(buffer), pFile);
	fclose(pFile);
	return 0;
}